package com.example.webdemo.dao;

import com.example.webdemo.bean.user;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    user findByUsername(String username);
    user findById(int id);
    int save(user user);
    int update(user user);
    int delete(int id);
    int changepass(int id, String newPassword);
    List<user> findall();
    user findByEmail(String email);
    user findByResetToken(String token);
}